<?php
namespace  Home\Controller;
use Think\Controller;
class CommonController extends Controller{

    //构造函数
    public function _initialize(){

        $this->Navs=M('navs')->order('sort asc')
            ->where(array('status'=>1))
            ->field('name,url')
            ->select();
    }

}